package create.simplefactory;

/**
 * @author pengcheng
 * @version V1.0
 * @description
 * @date 2019/10/26 16:54
 */
public class PizzaReflectFactroy {
    public static Pizza createPizza(String type) {
        Pizza pizza = null;
        try {
            pizza = ReflectDemo.getInstance().creatPizza(type);
        } catch (Exception e) {
            throw new RuntimeException("获取pizza出错");
        }
        return pizza;
    }
}
